package com.bean;
/**
 * 订货数据表实体类
 */

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

public class PlaceOrder implements Serializable {
    /*主键*/
    private Integer id;
    /*订货订单id*/
    private Integer orderId;
    /*商品id，引用商品信息表的id获取想要的信息*/
    private String commodityId;
    /*商品数量*/
    private String commodityCount;
    /*订货日期*/
    private Date orderDate;
    /*订货单状态*/
    private Integer commodityStaus;
    /*总金额*/
    private Double totalPrice;

    private Commodity commodity;

    public Commodity getCommodity() {
        return commodity;
    }

    public void setCommodity(Commodity commodity) {
        this.commodity = commodity;
    }

    public PlaceOrder(Integer orderId) {
        this.orderId = orderId;
    }

    public PlaceOrder(Integer orderId, Integer commodityStaus) {
        this.orderId = orderId;
        this.commodityStaus = commodityStaus;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(String commodityId) {
        this.commodityId = commodityId;
    }

    public String getCommodityCount() {
        return commodityCount;
    }

    public void setCommodityCount(String commodityCount) {
        this.commodityCount = commodityCount;
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    public Integer getCommodityStaus() {
        return commodityStaus;
    }

    public void setCommodityStaus(Integer commodityStaus) {
        this.commodityStaus = commodityStaus;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

   

    public PlaceOrder() {
    }

    public PlaceOrder(Integer orderId, String commodityId, String commodityCount, Date orderDate, Integer commodityStaus, Double totalPrice) {
        this.orderId = orderId;
        this.commodityId = commodityId;
        this.commodityCount = commodityCount;
        this.orderDate = orderDate;
        this.commodityStaus = commodityStaus;
        this.totalPrice = totalPrice;
    }

    public PlaceOrder(Integer id, Integer orderId, String commodityId, String commodityCount, Date orderDate, Integer commodityStaus, Double totalPrice) {
        this.id = id;
        this.orderId = orderId;
        this.commodityId = commodityId;
        this.commodityCount = commodityCount;
        this.orderDate = orderDate;
        this.commodityStaus = commodityStaus;
        this.totalPrice = totalPrice;
        
    }

    @Override
    public String toString() {
        return "PlaceOrder{" +
                "id=" + id +
                ", orderId=" + orderId +
                ", commodityId='" + commodityId + '\'' +
                ", commodityCount='" + commodityCount + '\'' +
                ", orderDate=" + orderDate +
                ", commodityStaus=" + commodityStaus +
                ", totalPrice=" + totalPrice +
                '}';
    }
}
